static void ensure_state_flag_backdrop (GtkWidget *widget);
static void unset_titlebar (GtkWindow *window);
-static void on_titlebar_title_notify (GtkHeaderBar *titlebar,
- GParamSpec *pspec,
- GtkWindow *self);
static GtkWindowRegion get_active_region_type (GtkWindow *window,
gint x,
gint y);
if (priv->title_box != NULL)
{
- g_signal_handlers_disconnect_by_func (priv->title_box,
- on_titlebar_title_notify,
- window);
gtk_widget_unparent (priv->title_box);
priv->title_box = NULL;
priv->titlebar = NULL;
priv->client_decorated = TRUE;
}
-static void
-on_titlebar_title_notify (GtkHeaderBar *titlebar,
- GParamSpec *pspec,
- GtkWindow *self)
-{
- const gchar *title;
-
- title = gtk_header_bar_get_title (titlebar);
- gtk_window_set_title_internal (self, title, FALSE);
-}
-
/**
* gtk_window_set_titlebar:
* @window: a #GtkWindow
NULL);
gtk_widget_set_parent (priv->title_box, widget);
- if (GTK_IS_HEADER_BAR (titlebar))
- {
- g_signal_connect (titlebar, "notify::title",
- G_CALLBACK (on_titlebar_title_notify), window);
- on_titlebar_title_notify (GTK_HEADER_BAR (titlebar), NULL, window);
- }
gtk_widget_add_css_class (titlebar, GTK_STYLE_CLASS_TITLEBAR);